<template>
  <div class="app-container">
    <PageContent ref="contentRef" :content-config="contentConfig" @addClick="handleAddClick" @edit-click="handleEditClick"
      @export-click="handleExportClick" @toolbarClick="handleToolbarClick" >
      
    </PageContent>
    <!-- 新增 -->
    <page-modal ref="addModalRef" :modal-config="addModalConfig" @submit-click="handleSubmitClick">
      
    </page-modal>

    <!-- 编辑 -->
    <page-modal ref="editModalRef" :modal-config="editModalConfig" @submit-click="handleSubmitClick">
      
    </page-modal>
  </div>
</template>

<script setup>
import contentConfig from "./config/content";
import addModalConfig from "./config/add";
import editModalConfig from "./config/edit";
import usePage from "@/hooks/usePage";
defineOptions({
  name: "paymentBanks",
  inheritAttrs: false,
});
const { t } = useI18n();

const { contentRef, addModalRef, editModalRef,
   handleAddClick,handleEditClick,
  handleSubmitClick, handleExportClick, } = usePage();


</script>

<style></style>